<template>
  <div class="dict-manage">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span>字典管理</span>
          <el-button type="primary" size="small">新增字典</el-button>
        </div>
      </template>
      <el-table :data="dictData">
        <el-table-column prop="name" label="字典名称" />
        <el-table-column prop="code" label="字典编码" />
        <el-table-column prop="description" label="描述" />
        <el-table-column label="操作" width="200">
          <template #default>
            <el-button size="small" type="primary">编辑</el-button>
            <el-button size="small" type="danger">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script setup>
import { ref } from 'vue'

const dictData = ref([
  {
    name: '用户状态',
    code: 'user_status',
    description: '用户状态字典'
  }
])
</script>

<style scoped>
.dict-manage {
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style> 